package com.ruoyix.ai.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * AI API 密钥业务对象 ai_api_key
 *
 * @author ruoyi
 * @date 2024-09-22
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AiApiKeyBo extends BaseEntity {

    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 密钥
     */
    @NotBlank(message = "密钥不能为空", groups = { AddGroup.class, EditGroup.class })
    private String apiKey;

    /**
     * 平台
     */
    @NotBlank(message = "平台不能为空", groups = { AddGroup.class, EditGroup.class })
    private String platform;

    /**
     * 自定义 API 地址
     */
    @NotBlank(message = "自定义 API 地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 是否删除
     */
    private Integer deleted;



}
